package br.com.puc.controllers;

import br.com.caelum.vraptor.Get;
import br.com.caelum.vraptor.Resource;
import br.com.puc.models.ProducaoAcademica;
import br.com.puc.models.annotations.Publico;
import br.com.puc.repositories.ProducaoAcademicaRepository;

@Publico
@Resource
public class ProducaoAcademicaController {

	private final ProducaoAcademicaRepository repository;
	
	public ProducaoAcademicaController(ProducaoAcademicaRepository repository) {
		this.repository = repository;
	}

	@Get("/producaoAcademica/report")
	public ProducaoAcademica report() {
		return repository.geraRelatorioResumido();
	}
}
